﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using C2E2C.Repository;

namespace C2E2C.Web.Controllers
{
    public class C2E2CController : Controller
    {
        private IUnitOfWork unitOfWork;
        private IRepositoryContainer repositoryContainer;

        protected IUnitOfWork UnitOfWork
        {
            get 
            { 
                return this.unitOfWork; 
            }
        }

        protected IRepositoryContainer RepositoryContainer
        {
            get
            {
                return this.repositoryContainer;
            }
        }

        public C2E2CController(
            IUnitOfWork unitOfWork, 
            IRepositoryContainer repositoryContainer)
        {
            this.unitOfWork = unitOfWork;
            this.repositoryContainer = repositoryContainer;
        }
    }
}